﻿using Volo.Abp.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc;

namespace Demo.ProductService.Controllers
{
    /// <summary>
    /// 测试接口 
    /// </summary>
    [ApiController]
    [Route("api/productfile")]
    public class ProductFileController : AbpController
    {

        public ProductFileController()
        {

        }

        /// <summary>
        ///AddProduct
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        [HttpPost]
        public string CreateAsync()
        {
            try
            {
                var input = "Failed Success ";
                var result = input.Substring(4, 1);
                return result;
            }
            catch (Exception e)
            {
                return "请求出错。。。。";
            }
        }

        /// <summary>
        /// Get
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public string GetName()
        {
            return "A0001";
        }

    }
}
